﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="FunctionDivide.ascx.cs"
  Inherits="NguyenHoa.Web.Controls.FunctionDivide" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<div class="row" style="width: 650px; height: 15px; cursor: pointer; padding-left: 10px"
  onmouseover="div_mouseover(this)" onmouseout="div_mouseout(this)">
  <div class="text_column" style="width: 200px; height: 15px; padding-top: 2px;">
    <asp:Label ID="lblPageName" runat="server" Text=""></asp:Label>
    <asp:HiddenField ID="hfFunctionObjId" runat="server" />
  </div>
  <div class="text_column" style="width: 100px; height: 15px; padding-top: 2px; text-align: center">
    <asp:CheckBox ID="cbView" runat="server" />
  </div>
  <div class="text_column" style="width: 100px; height: 15px; padding-top: 2px; text-align: center">
    <asp:CheckBox ID="cbModify" runat="server" />
  </div>
  <div class="text_column" style="width: 100px; height: 15px; padding-top: 2px; text-align: center;">
    <asp:CheckBox ID="cbDelete" runat="server" />
  </div>  
  <div class="text_column" style="width: 100px; height: 15px; padding-top: 2px; text-align: center;">
    <asp:CheckBox ID="cbApprove" runat="server" />
  </div>  
</div>

<script type="text/javascript" language="javascript">
 function checkCheckBox(viewCheckBoxId, editCheckBoxId) {
  if (document.getElementById(editCheckBoxId).checked) {
    document.getElementById(viewCheckBoxId).checked = true;
  }
}

  function checkView(viewCheckbox, deleteCheckbox, modifyCheckBox, approveCheckBox)
  {
     if (!document.getElementById(viewCheckbox).checked) {
        document.getElementById(deleteCheckbox).checked = false;
        document.getElementById(modifyCheckBox).checked = false;
        document.getElementById(approveCheckBox).checked = false;
      }
  }
  
  function div_mouseover(obj)
  {
  }
  
  function div_mouseout(obj)
  {
  }
</script>


